<?php
if(isset($_SESSION[sess_login])){
	$name = $_SESSION[sess_login]['username'];
	session_destroy();
	echo 'Logout success! Good Bye '.$name.'!';
} else {
	echo '<script>setTimeout(window.location = "index.php",0);</script>';
}
?>
